package org.simple.framework.data.jpa.query;

import org.simple.framework.data.query.MatchHandler;

/**
 * 项目名称：simple-framework
 * 类名称：JpaMatchHandler
 * 类描述：JpaMatchHandler
 * 创建时间：2018/9/10
 *
 * @author sisyphus   (E-mail:1620657419@qq.com)
 * @version v1.0
 */
public class JpaMatchHandler extends MatchHandler {

    @Override
    protected String handleStart(String pattern) {
        return pattern + '%';
    }

    @Override
    protected String handleEnd(String pattern) {
        return '%' + pattern;
    }

    @Override
    protected String handleAnyWhere(String pattern) {
        return '%' + pattern + '%';
    }

}
